package com.ruoyi.wmsorder.mapper;

import java.util.List;
import com.ruoyi.wmsorder.domain.WmsShipmentOrder;
import com.ruoyi.wmsorder.domain.WmsShipmentOrderDetail;

/**
 * 销售发货出库Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-20
 */
public interface WmsShipmentOrderMapper 
{
    /**
     * 查询销售发货出库
     * 
     * @param id 销售发货出库主键
     * @return 销售发货出库
     */
    public WmsShipmentOrder selectWmsShipmentOrderById(Long id);

    /**
     * 查询销售发货出库列表
     * 
     * @param wmsShipmentOrder 销售发货出库
     * @return 销售发货出库集合
     */
    public List<WmsShipmentOrder> selectWmsShipmentOrderList(WmsShipmentOrder wmsShipmentOrder);

    /**
     * 新增销售发货出库
     * 
     * @param wmsShipmentOrder 销售发货出库
     * @return 结果
     */
    public int insertWmsShipmentOrder(WmsShipmentOrder wmsShipmentOrder);

    /**
     * 修改销售发货出库
     * 
     * @param wmsShipmentOrder 销售发货出库
     * @return 结果
     */
    public int updateWmsShipmentOrder(WmsShipmentOrder wmsShipmentOrder);

    /**
     * 删除销售发货出库
     * 
     * @param id 销售发货出库主键
     * @return 结果
     */
    public int deleteWmsShipmentOrderById(Long id);

    /**
     * 批量删除销售发货出库
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsShipmentOrderByIds(Long[] ids);

    /**
     * 批量删除出库单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsShipmentOrderDetailByShipmentOrderIds(Long[] ids);
    
    /**
     * 批量新增出库单详情
     * 
     * @param wmsShipmentOrderDetailList 出库单详情列表
     * @return 结果
     */
    public int batchWmsShipmentOrderDetail(List<WmsShipmentOrderDetail> wmsShipmentOrderDetailList);
    

    /**
     * 通过销售发货出库主键删除出库单详情信息
     * 
     * @param id 销售发货出库ID
     * @return 结果
     */
    public int deleteWmsShipmentOrderDetailByShipmentOrderId(Long id);
}
